/**
 * 
 */
package dms.model.form;

/**
 * @author 李健
 *
 */
public class FoundNotice extends Notice {

	private String foundPerson;

	/**
	 * @return the foundPerson
	 */
	public String getPerson() {
		return foundPerson;
	}

	/**
	 * @param foundPerson the foundPerson to set
	 */
	public void setPerson(String foundPerson) {
		this.foundPerson = foundPerson;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result
				+ ((foundPerson == null) ? 0 : foundPerson.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		FoundNotice other = (FoundNotice) obj;
		if (this.getId() == null) {
			if (other.getId() != null)
				return false;
		} else if (!this.getId().equals(other.getId()))
			return false;
		return true;
	}	
	
}
